<template>
	<view class="page">
		
		<view style="width: 400px;margin: 0 auto;">
			<view class="navlv">
				<view class="navleft">司机名称：</view>
				<view class="navright">{{uinfo.cname}}</view>
			</view>
			<view  class="navlv">
				<view class="navleft">手机号：</view>
				<view class="navright">{{uinfo.phone}}</view>
			</view>
			
			<view  class="navlv">
				<view class="navleft">单位：</view>
				<view class="navright">{{uinfo.danw}}</view>
			</view>
			
			<view  class="navlv">
				<view class="navleft">角色：</view>
				<view class="navright">{{uinfo.cdtypeinfo}}</view>
			</view>
			
			
			<view  class="navlv">
				<view class="navleft">绑定车队：</view>
				<view class="navright">{{uinfo.cdname}}</view>
			</view>
		</view>
		
	</view>
</template>
<script>
	export default {
		data() {
			return {
				id:'',
				uinfo:'',	
			}
		},
		async onLoad(){
			let uid = uni.getStorageSync('uid')
				this.getuserinfo();
		},
		methods: {
			async getuserinfo(){
				let data = {
					id:uni.getStorageSync('uid')
				}
				let res =  await this.$api.getuseriflv(data)
				console.log(res.data.code)
				if(res.data.code==0){
					this.uinfo = res.data.data
				}
			},	
		}
	}
</script>

<style  lang="scss">
	.page {
		background-color: #ffffff;
		padding: 10px;
	}
	.navlv{
		height: 30px;
		margin-top: 10px;	

	}
	.navleft{
		height: 30px;
		line-height: 30px;
		width: 80px;
		float: left;
	}
	.navright{
		height: 30px;
		line-height: 30px;
		float: left;
	}
</style>
